The MultiViewPanel allows multiple views to be used in an application, which are accessible via its Views property or in XAML via its PanelViewsProperty attached property. Views can be switched easily and automatically, and animations are used to render the change from one view to another.
The following XAML shows how to set up a MultiViewPanel with two StackView views and a PathView.
The IsActiveView property determines whether a given view is the one that is currently active. Setting a view's IsActiveView property to true automatically performs the switch and results in the view switch :
PublicSub ChangeActiveView(ByVal newActiveView As View)
If newActiveView IsNothingThen
Debug.Assert(False, "newActiveView cannot be null")
ReturnEndIf
newActiveView.IsActiveView = TrueEnd Sub